package com.cloudkinto.service.mail;

import com.cloudkinto.common.web.SingleResult;
import com.cloudkinto.dto.platform.order.PlatformOrderDto;
import com.cloudkinto.entity.MailAccountDo;
import com.cloudkinto.service.mail.vo.SendMailReq;

import java.util.List;

public interface SendMailService {
    SingleResult sendEmail(SendMailReq req);

    SingleResult autoSendEmail(int mailType, Long storeId, List<Long> ids);

    SingleResult autoSendEmail(int mailType , List<MailAccountDo> mailAccountDos, List<PlatformOrderDto> platformOrders);

    SingleResult preview(SendMailReq req);

    void deleteRecordsOlderThan7Days();

    SingleResult previewContent(SendMailReq req);
}
